package com.heiye.blog.ai.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.heiye.blog.ai.domain.dos.TextModelDO;

import java.util.List;

/**
 * @author: heiye
 * @date: 2025/11/06 下午5:41
 * @version: v1.0.0
 * @description: TODO
 */
public interface TextModelMapper extends BaseMapper<TextModelDO> {

    /**
     * 根据 IDS 批量查询文本模型信息
     *
     * @param ids
     * @return
     */
    default List<TextModelDO> selectByIds(List<Long> ids) {
        return selectList(Wrappers.<TextModelDO>lambdaQuery()
                .in(TextModelDO::getId, ids));
    }
}
